package cn.jtfadmin.base.dict.service.impl;


import cn.jtfadmin.base.dict.service.DictEntityService;
import cn.jtfadmin.base.lang.common.domain.dto.SpecPDTO;
import cn.jtfadmin.base.lang.common.domain.entity.IdEntity;
import cn.jtfadmin.base.lang.common.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 缺省的字典实体服务类实现
 * @param <T>
 */
public class DefaultDictEntityImpl<T extends IdEntity> implements DictEntityService<T> {

    @Autowired
    protected BaseService<T> baseService;


    @Override
    public Class<T> getEntityClass() {
        return (Class<T>) baseService.getEntityClass();
    }



    @Override
    public List<T> findAll(SpecPDTO<T> specPDTO) {
        return baseService.findAll(specPDTO);
    }


}
